<?php

//ads管理
Route::group(array('namespace'=>'Admin\Ad','prefix' => 'ads'), function(){

    Route::get('/','IndexController@index');
    Route::delete('ad/destroy_checked','AdController@destroy_checked');  //多选删除
    Route::patch('/ad/sort_order','AdController@sort_order');

    //显示回收站
    Route::get('/ad/trash','AdController@trash');

    //回收站删除 还原 最后删除
    Route::get('/ad/{ad}/restore','AdController@restore'); //回收站恢复单个
    Route::delete('/ad/{ad}/delete_force','AdController@delete_force'); //回收站强制删除单个
    Route::get('/ad/restore_checked','AdController@restore_checked'); //回收站恢复多个
    //回收站多选删除没做

    Route::resource('/ad','AdController');

    //广告栏目category
    Route::patch('/category/sort_order','CategoryController@sort_order');
    Route::resource('/category','CategoryController');

});